package com.lggry.constructor;

public class Test {
    public static void main(String[] args) {
        //目标：认识类的构造器，搞清楚其特点和常见应用场景
        //构造器特点，创建对象时，对象会立即自动调用构造器
//        Student s1 = new Student();
//        Student s2 = new Student("小明",18);
//        Student s3 = new Student("小红",18,100);

        Student stu1 = new Student("李熙胤",18, '男');
        System.out.println(stu1);
    }

}
